import request from "@mars/utils/request"

// 注册接口--> itheima
// export const userRegisterService = ({username, password, repassword}) =>
//   request.post('/api/reg', {username, password, repassword})

// 注册接口--> shimo
export const userRegisterService = ({ userAccount, password, rePassword }) =>
  request.post("/user/register", { userAccount, password, rePassword })
// {
//   return {username, password, repassword}
// }


// 登录接口 --> itheima
// export const userLoginService = ({username, password}) =>
//   request.post('/api/login', {username, password})


// 登录接口 --> shimo
export const userLoginService = ({ userAccount, password }) =>
  request.post("/user/login", { userAccount, password })
// {
//   return {username, password}
// }



